<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>管理学生</title>
		<link href="css/style.css" rel="stylesheet" type="text/css">
	</head>

	<body>

		<center>
			<h1>
				管理学生
			</h1>
			<table align="center" border="1">
				<tr>
					<th>
						班级
					</th>
					<th>
						学生名
					</th>
					<th>
						移出班级
					</th>
				</tr>

				<c:forEach var="list" items="${requestScope.data}" varStatus="index">
					<tr
						<c:if test="${index.index % 3 == 0 }"> style="background-color:rgb(240,240,240);"</c:if>
						<c:if test="${index.index % 2 == 0 }"> style="background-color:rgb(219,241,212);"</c:if>>
						<td>
							${list.t_group_name}
						</td>
						<td>
							${list.t_user_nick})
						</td>
						<td>
							<a href="servlet_removestudent?gid=${list.t_group_id}&uid=${list.t_groupsub_userid}">移出</a>
						</td>
					</tr>
				</c:forEach>

			</table>
		</center>
	</body>
</html>
